package com.hwtx.form.persistence.ds.metadata;

import java.io.Serializable;

public class Catalog extends BaseMetadata<Catalog> implements Serializable {
    public Catalog() {

    }

    public Catalog(String name) {
        this.name = name;
    }

    public String toString() {
        return name;
    }

    public boolean isEmpty() {
        return null == name || name.trim().isEmpty();
    }

    public boolean equal(Catalog catalog) {
        String name = null;
        if (null != catalog) {
            name = catalog.getName();
        }
        if (null == this.name) {
            return null == name;
        } else return this.name.equals(name);
    }
}
